//
//  activemodel.m
//  ui豆瓣
//
//  Created by lirui on 15/12/23.
//  Copyright © 2015年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "activemodel.h"

@implementation activemodel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"owner"]) {
        self.actOwner =value[@"name"];
        NSLog(@"%@",self.actOwner);
    }
}
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_title forKey:@"标题"];
}
#pragma mark -解档方法

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        //按照归档时的key取值
    self.title = [coder decodeObjectForKey:@"标题"];
    }
    return self;
}

@end
